//
//  SortCollectionViewCell.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/7/4.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "SortCollectionViewCell.h"

@implementation SortCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        WeakSelf
        self.iconImg = [UIImageView new];
        //        [_iconImg sizeToFit];
        [self.contentView addSubview:_iconImg];
        [_iconImg mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.contentView);
            make.centerY.equalTo(self.contentView).offset(-rateHeight(20));
            make.size.mas_offset(CGSizeMake(rateWidth(90), rateWidth(90)));
        }];
        
        self.titleLB = [UILabel labelWithText:@"" textColor:UIColorFromRGB(0x333333) fontSize:12];
        [_titleLB sizeToFit];
        [self.contentView addSubview:_titleLB];
        [_titleLB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.contentView);
            make.top.equalTo(weakSelf.iconImg.mas_bottom).offset(rateHeight(10));
        }];
    }
    return self;
}

@end
